sf: probe: Code cleanup
authorJagan Teki <[email protected]>
Tue, 3 Nov 2015 18:57:35 +0000 (00:27 +0530)
committerJagan Teki <[email protected]>
Fri, 11 Dec 2015 16:42:23 +0000 (22:12 +0530)
commit0edae52f08fe602ebe9ba1d132f91552cac86472
treef5186cd102e5163ae80570e098b5c929b0376add
parent1e90d9fd3148cebcd6f87cbbaed564b878e2b24a
sf: probe: Code cleanup

- Move bar read code below the bar write hance both
  at once place, hence it easy for #ifdef macro only
  once and readable.
- Move read_cmd_array at top

Tested-by: Jagan Teki <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
drivers/mtd/spi/sf_ops.c